package res

type ResMsg struct {
	// Code
	// CodeSuccess = 1000
	// CodeParamsInvalid = 1001
	// CodeParamsFalse = 1002
	// CodeSystemBusy = 1003
	// CodeNotRoot = 1004
	// CodeTokenInvalid = 1005
	Code int `json:"code"`

	// Msg
	// CodeSuccess:       "Success"
	// CodeParamsInvalid: "Invalid params"
	// CodeParamsFalse:   "The account number or password is incorrect"
	// CodeSystemBusy:    "The system is busy"
	// CodeNotRoot:       "have not right"
	// CodeTokenInvalid:  "token is invalid",
	Msg string `json:"msg"`
}

type Code1000 struct {
	Code int    `json:"code" example:"1000"`
	Msg  string `json:"msg" example:"Success"`
}

type Code1001 struct {
	Code int    `json:"code" example:"1001"`
	Msg  string `json:"msg" example:"Invalid params"`
}

type Code1002 struct {
	Code int    `json:"code" example:"1002"`
	Msg  string `json:"msg" example:"The account number or password is incorrect"`
}

type Code1003 struct {
	Code int    `json:"code" example:"1003"`
	Msg  string `json:"msg" example:"The system is busy"`
}

type Code1004 struct {
	Code int    `json:"code" example:"1004"`
	Msg  string `json:"msg" example:"have not right"`
}

type Code1005 struct {
	Code int    `json:"code" example:"1005"`
	Msg  string `json:"msg" example:"token is invalid"`
}
